_vehicle = _this select 0;
_weapon = _this select 1;
enableEngineArtillery false;
while {player == (gunner _vehicle) && alive(player)} do {
_dirs = [_vehicle weaponDirection _weapon] call compile preprocessFileLineNumbers ("=BTC=Arty\get_dir.sqf");
_azimuth = _dirs select 0;
_elevation = _dirs select 1;
if (_weapon == "M119" or _weapon == "D30") then {
hintSilent format ["azimuth %1deg \nelevation %2deg \nCLOSE\n70deg  4000m\n68deg  4250m\n66deg  4500m\n65deg  4750m\n63deg  5000m\n\n58deg  5500m\n52deg  6000m\nMEDIUM\n67deg  6500m\n64deg  7000m\n62deg  7500m\n58deg  8000m\n54deg  8500m\nFAR\n70deg  9000m\n68deg  9500m\n67deg  10000m\n65deg  10500m\n63deg  11000m\n62deg  11500m\n60deg  12000m\n58deg  12500m\n55deg  13000m\n51deg  13500m\n49deg  14000m", _azimuth, _elevation];
}
else
{
hintSilent format ["azimuth %1deg \nelevation %2deg \nCLOSE\n83deg  100m\n76deg  200m\n68deg  300m\n57deg  400m\n48deg  437m\nMEDIUM\n84deg  400m\n83deg  500m\n82deg  600m\n80deg  700m\n79deg  800m\n77deg  900m\n76deg  1000m\n75deg  1100m\nFAR\n84deg  1200m\n82deg  1500m\n81deg  1800m\n80deg  2000m\n79deg  2200m\n77deg  2500m\n75deg  3000m\n72deg  3500m\n69deg  4000m\n65deg  4500m\n61deg  5000m\n55deg  5500m\n45deg  6000m", _azimuth, _elevation];
};
};
hintSilent "";
enableEngineArtillery true;
if(true) exitWith {}; 